<?php
$session = new Zend_Session_Namespace('Zend_Auth');
$sess = $session->data;

$sessionAdmin = new Zend_Session_Namespace('Zend_Auth_Admin');
$sessAdmin = $sessionAdmin->data;


echo "<?xml version='1.0' encoding='UTF-8' ?>\n";
echo "<!DOCTYPE HTML >";
?>

<html lang="en">
<head>
    
    <?php echo $this->headTitle() ?>
    <?php echo $this->headStyle() ?>
    <?php echo $this->headScript() ?>

</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-2 column">
                <img class="profile-img" src="<?php echo $this->baseUrl() ?>/img/logo-komunitas.png"  alt="">
	    </div>

            <div class="column" align="center">
                 <div class="btn-group">
                  <?php echo $this->topMenu() ?>
                </div>
            </div>

            <br><br>
            <br>
            <div class="col-md-3 column">

                <div class="list-group">
				<a class="list-group-item active">SMS</a>
				<div class="list-group-item">
					<a href="<?php echo $this->baseUrl() ?>/sms/sendsms">Kirim SMS ke Downline</a>

				</div>
                                <!--div class="list-group-item">
					  <a href="<?php echo $this->baseUrl() ?>/sms/smsoutbox">SMS Outbox</a>
				</div-->
			</div>

		</div>
            <div class="col-md-7 column">
                 <div align="" id="div_content">
                <?php echo $this->layout()->content; ?>
                </div>
            </div>


           <div class="col-md-2 column">

                <div class="list-group">
				<a class="list-group-item active">Member Baru</a>
				
                                <div class="list-group-item" id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
					
                                        <div id="vmarquee" style="position: absolute; width: 98%;">

                                        <!--YOUR SCROLL CONTENT HERE-->
                                            <?php echo $this->newMembers; ?>
                                        <!--YOUR SCROLL CONTENT HERE-->
                                        
                                        </div>
				</div>

                                
			</div>

                <div class="list-group">
			
                                <a class="list-group-item active">Reward</a>
				<div class="list-group-item" id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">

                                        <div id="vmarquee" style="position: absolute; width: 98%;">

                                        <!--YOUR SCROLL CONTENT HERE-->
                                            <?php echo $this->rewardMember; ?>
                                        <!--YOUR SCROLL CONTENT HERE-->

                                        </div>
				</div>
			</div>
		

                <div class="list-group">

                                <a class="list-group-item active">Reward Sahe Intl</a>
				
                                <div class="list-group-item">
				
				</div>
			</div>
		</div>
        </div>
    </div>
    <script>
        function getChild(data) {

                    $.ajax({
                        url: '<?php echo $this->baseUrl() ?>/member/network/',
                        type: "post",
                        data: {key : data, ajax: 1},
                        success: function(response, opts){

                            var cekSess = response.toUpperCase().search("SESSION TIMEOUT");

                            if (cekSess < 0){
                                $("#div_content").html(response);
                            }else{
                                location.href='<?php echo $this->baseUrl() ?>/index/login/Session Timeout silahkan login kembali !';
                            }

                        },
                        error:function(response, opts){
                            //alert("failure");
                            $("#div_content").html(response);

                        }
                    });

                };

            function getTreeChild(data) {

                    $.ajax({
                        url: '<?php echo $this->baseUrl() ?>/member/treenary/',
                        type: "post",
                        data: {key : data, ajax: 1},
                        success: function(response, opts){

                            var cekSess = response.toUpperCase().search("SESSION TIMEOUT");

                            if (cekSess < 0){
                                $("#div_content").html(response);
                            }else{
                                location.href='<?php echo $this->baseUrl() ?>/index/login/Session Timeout silahkan login kembali !';
                            }

                        },
                        error:function(response, opts){
                            //alert("failure");
                            $("#div_content").html(response);

                        }
                    });

                };
        </script>
</body>
</html>


